﻿@using ELTE.SEM.Data.ViewModels
@using ELTE.SEM.Data.Managers


@model SEMLogEntryPartViewModel

<div id="log-entry-edit-add-partial">
    <div id="edit-entry-part-form">
        <div id="edit-entry-part-inputs">
            <div class="entry-part-form-input">
                <div>
                    Bejegyzésrész típusa
                </div>
                <div class="styled-select">
                    <select>
                        @{
                            List<KeyValuePair<int, string>> entryTypes = new LogEntryManager().GetAvailableLogentryTypes();
                            foreach (var item in entryTypes)
                            {
                            <option value="@item.Key">@item.Value</option>
                            }
                        }
                    </select>
                </div>
                <div class="validation-error" id="error-edit-entrypart-desc"></div>
            </div>
            <div class="entry-part-form-input">
                <div>
                    Bejegyzésrész szövege
                </div>
                <textarea cols="1" rows="1" placeholder="" id="txt-edit-description"></textarea>
            </div>
        </div>
        <div class="entry-part-form-submit">
            <input type="hidden" id="edit-part-id" value="" />
            <input type="hidden" id="edit-part-entry-id" value="" />
            @Html.Partial("MButton", new Tuple<string, string>("btn-edit-log-part", "Bejegyzésrész szerkesztése"))
        </div>
    </div>

</div>


